<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="data.*" 
    import="java.util.*"
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>


    
<!-- <tr><td>Tidning</td><td>Pris</td><td>Abonneringstid</td></tr><tr><td> -->

<!--  <input type="hidden"-->



<!-- <tr><td><input type="hidden" name="DN" value="DN">DN</td>
<td><input type="hidden" name="price" value="50">50 SEK</td><td><select name="months"> -->


<% 
for(int i=0;i< Kundvagn.fetchBild().size();i++)
{
		out.print("<form method='POST' action='SAction.jsp'><table border='1'>");
		 String tidning = String.valueOf(Kundvagn.fetch().get(i));
		 String pris = String.valueOf(Kundvagn.fetchPrice().get(i));
		// out.print(tidning);
			out.print("<tr><td><input type=\"hidden\" name=\"tidningsNamn\" value=\""+ tidning + "\">" + Kundvagn.fetch().get(i) + " </td>");
			out.print("<td><input type=\"hidden\" name=\"price\" value=\"" + pris + "\">" + "Pris: " + Kundvagn.fetchPrice().get(i) + "</td>" );
			out.print("<td><select name='months'><option value='3'>3</option><option value='6'>6</option><option value='12'>12</option></select></td>");
			out.print("</tr><tr><td><input type='submit' value='Submit' name='submit'></td></tr>");
			
		    out.print("</table></form>");
			
		
		 
		
		
		
		
			
		}
%>


</body>
</html>


